<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.util.ParamUtil"%>
<%@page import="com.is.control.StudentControl"%>
<%@ page import="com.is.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<% 
	request.setCharacterEncoding("utf-8");
	DesData des = new DesData();
	int sid = Integer.parseInt(des.decrypt(ParamUtil.getString(request,"sid")));
	if(StudentControl.delStudent(sid)){
%>
<script type="text/javascript">
	alert("删除成功");
	window.location.href="student_admin.jsp";
</script>
<% 		
	} else{
%>
<script type="text/javascript">
	alert("删除失败");
	window.location.href="student_admin.jsp";
</script>
<%
	}
%>
<body>

</body>
</html>